package com.jye.rseven.user.mapper;

import com.jye.rseven.domain.Follow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FollowMapper {


    int isExist(@Param("follow")Follow follow);

    void updateStatus(@Param("follow")Follow follow);

    void addFollow(@Param("follow")Follow follow);

    int isFollow(@Param("follow")Follow follow);

    List<Follow> findFollowByType(@Param("type")int fType, @Param("skip") int skip,@Param("limit") int limit);

    List<Integer> findMyFollowByUIdAndType(@Param("uId") int uId,@Param("type")int type);
}
